# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: urls.py
@time: 2021/11/20 21:35
'''
from django.urls import path
from apps.verification import views
from utils.converters import UUIDConverter
from utils.converters import MobileConverter
from django.urls.converters import register_converter

# 注册转换器
register_converter(UUIDConverter,'uuid')
register_converter(MobileConverter,'mobile')

urlpatterns = [
    path('image_codes/<uuid:uuid>/',views.ImageCodeView.as_view()),
    path('sms_codes/<mobile:mobile>/',views.SmsCodeView.as_view())
]